<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>批量个案查询</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		 function reset(){
				
				$("#searchForm").reset();
				var selectVal = $("form:select");
				for(var i=0;i<selectVal.lengeth;i++){
					selectVal[i].options[0].selected= true;
				}
		} 
		 
		
		 function doDelete(){
				
			 text = $("input[name='checkbox']:checked").map(function(index,elem){
				 return $(elem).val();
				 
			 }).get().join(',');
			//alert("选中的值为"+text);
			var url = "${ctx}/order/bsVaccineOrder/doDelete";
			$.ajax({
				url: url,
				data: {"ids" : text},
				type : "post",
				success : function(data){
					location.href= "${ctx}"+data;
				}
				
			});
		
		}
		 
		 function search(){
			 if($("#orderType").val()==""){
				return;
			 }else{
				 $("#searchForm").submit();
			 }
		 }
		 
		 function selectAll(){
				
			 $("input[name='checkbox']").attr("checked","true");  
			 
		 }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/order/bsVaccineOrder/">批量个案查询</a></li>
		
	</ul>
	<form:form id="searchForm" modelAttribute="bsVaccineOrder" action="${ctx}/vaccinate/repeatCase/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	
			<label>请选择要导入的Excel文件：</label>
			<input type="file" name="imp" value="浏览" />

		<br/>
		<ul class="ul-form">
		<li class="btns"><input id="btnSubmit" class="btn btn-primary" onclick="" type="button" value="查询"/></li>
		<li class="btns"><input onclick=""  class="btn btn-primary" type="button" value="上传"/></li>
		<li class="btns"><input onclick="down()" class="btn btn-primary" type="button" value="导出模板"/></li>
		<li class="btns"><input onclick="doDelete()" class="btn btn-primary" type="button" value="删除"/></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th><span><input type="checkbox" id="checkAll" onclick="selectAll()"/></span></th>
				<th>上传人</th>
				<th>上传文件</th>
				<th>任务状态</th>
				<th>上传时间</th>
				<th>结束时间</th>
				<th>导出Excel</th>
				
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bsVaccineOrder">
			<tr>
				<td>
				<span><input type="checkbox" name="checkbox" value="${bsVaccineOrder.id}"/></span>
				</td>
				<td>1</td>
				<td>2</td>
				<td>3</td>
				<td>4</td>
				<td>5</td>
				<td>6</td>
				
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>